package com.greendeliver.entity;

/**
 * @author Bergaire Alexandre
 *
 */
public class Event implements java.io.Serializable {
	private int		ID_event;
	private String	name_event;
	private String	description_event;
	private int		duration_event;
	private String	creation_date_event;
	private int		number_actor_event;
	private String	linked_event;
	private float	vote_event;
	private int		nb_vote_event;
	private float	latitude_event;
	private float	longitude_event;
	private String	begin_hour_schedule;
	private String	date;

	public Event( int id, String name, String description, int duration, String creation_date, int number_actor,
			String linked, float vote, int nb_vote, float latitude, float longitude, String begin_hour, String date ) {
		this.setID_event( id );
		this.setName_event( name );
		this.description_event = description;
		this.setDuration_event( duration );
		this.setCreation_date_event( creation_date );
		this.setNumber_actor_event( number_actor );
		this.setLinked_event( linked );
		this.setVote_event( vote );
		this.setNb_vote_event( nb_vote );
		this.setLatitude_event( latitude );
		this.setLongitude_event( longitude );
		this.setBegin_hour_schedule( begin_hour );
		this.setDate( date );
	}

	public Event( int id, String name, String description, int duration,
			float latitude, float longitude, String begin_hour ) {
		this.setID_event( id );
		this.setName_event( name );
		this.description_event = description;
		this.setDuration_event( duration );
		this.setLatitude_event( latitude );
		this.setLongitude_event( longitude );
		this.setBegin_hour_schedule( begin_hour );
	}

	public Event() {
	}

	public String getDescription_event() {
		return description_event;
	}

	public void setDescription_event( String description ) {
		this.description_event = description;
	}

	public String getName_event() {
		return name_event;
	}

	public void setName_event( String name_event ) {
		this.name_event = name_event;
	}

	public int getDuration_event() {
		return duration_event;
	}

	public void setDuration_event( int duration_event ) {
		this.duration_event = duration_event;
	}

	public String getCreation_date_event() {
		return creation_date_event;
	}

	public void setCreation_date_event( String creation_date_event ) {
		this.creation_date_event = creation_date_event;
	}

	public int getNumber_actor_event() {
		return number_actor_event;
	}

	public void setNumber_actor_event( int number_actor_event ) {
		this.number_actor_event = number_actor_event;
	}

	public String getLinked_event() {
		return linked_event;
	}

	public void setLinked_event( String linked_event ) {
		this.linked_event = linked_event;
	}

	public float getVote_event() {
		return vote_event;
	}

	public void setVote_event( float vote_event ) {
		this.vote_event = vote_event;
	}

	public int getNb_vote_event() {
		return nb_vote_event;
	}

	public void setNb_vote_event( int nb_vote_event ) {
		this.nb_vote_event = nb_vote_event;
	}

	public float getLatitude_event() {
		return latitude_event;
	}

	public void setLatitude_event( float latitude_event ) {
		this.latitude_event = latitude_event;
	}

	public float getLongitude_event() {
		return longitude_event;
	}

	public void setLongitude_event( float longitude_event ) {
		this.longitude_event = longitude_event;
	}

	public String getBegin_hour_schedule() {
		return begin_hour_schedule;
	}

	public void setBegin_hour_schedule( String begin_hour_schedule ) {
		this.begin_hour_schedule = begin_hour_schedule;
	}

	public String getDate() {
		return date;
	}

	public void setDate( String date ) {
		this.date = date;
	}

	public int getID_event() {
		return ID_event;
	}

	public void setID_event( int iD_event ) {
		ID_event = iD_event;
	}

	@Override
	public String toString() {

		return ID_event + ';' + name_event + ';' + description_event + ';' + duration_event + ';' + creation_date_event
				+ ';' + number_actor_event + ';'
				+ linked_event + ';' + vote_event + ';' +
				nb_vote_event + ';' + latitude_event + ';' + longitude_event + ';' + begin_hour_schedule + ';' + date
				+ ';';

	}
}
